﻿using HomagGroup.Base.Communication.Items;
using HomagGroup.Base.Communication.Items.Config;
using System.Configuration;
using System.Windows.Controls;

namespace Proxy
{
    public static class Globle
    {
        public static Coordinates corrdinate = new Coordinates();   
        public struct Coordinates
        {
            public double X { get; set; }
            public double Y { get; set; }
            public double R { get; set; }
            public int HasBoard { get; set; }
        }
        /// <summary>
        /// 三菱PLC是否激活
        /// </summary>
        public static bool isMitsubishiActive = false;

        /// <summary>
        /// 进料功能是否激活
        /// </summary>
        public static bool isInfeedActive = false;

        /// <summary>
        /// 出料功能是否激活
        /// </summary>
        public static bool isOutfeedActive = false;

        /// <summary>
        /// 移库功能是否激活
        /// </summary>
        public static bool isMovementActive = false;

        /// <summary>
        /// H330_1是否开启
        /// </summary>
        public static bool isDRILLTEQActive_1 = false;

        /// <summary>
        /// H330_2是否开启
        /// </summary>
        public static bool isDRILLTEQActive_2 = false;

        /// <summary>
        /// 清空所有功能是否激活
        /// </summary>
        public static bool isRunEmptyActive = false;

        /// <summary>
        /// 取消所有功能是否激活
        /// </summary>
        public static bool isCanCelAllActive = false;

        /// <summary>
        /// 
        /// </summary>
        public static ItemManager itemManager = null;

        /// <summary>
        /// 
        /// </summary>
        public static ItemManagerConfig itemManagerConfig = null;

        /// <summary>
        /// 操作模式
        /// </summary>
        public static string OpreationMode = "Auto";

        public static string ServerName = ConfigurationManager.AppSettings["ServerName"].ToString();
    }
}
